import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

# raw_data_path = './data/synthetic_data_with_anomaly-s-1.csv'
# data = np.array(pd.read_csv(raw_data_path, header = None), dtype=np.float64)
# # plt.plot(data[0][:50],label='s1')
# # plt.plot(data[1][:50],label='s2')
# # plt.plot(data[2][:50],label='s3')
# # plt.plot(data[3][:50],label='s4')
# # plt.plot(data[4][:50],label='s5')
# # plt.legend()
# # plt.show()
# r = []
# for i in data[4][:15]:
#     r.append(round(i,2))
# print(r)
import os

import sys



def print_files(path):
    lsdir = os.listdir(path)
    dirs = [i for i in lsdir if os.path.isdir(os.path.join(path,i))]
    files = [i for i in lsdir if os.path.isfile(os.path.join(path,i))]
    if files:
        for f in files:
            print (os.path.join(path,f))
    if dirs:
        for d in dirs:
            print_files(os.path.join(path,d))

print_files("F:\demo\乔哲操作系统比赛\Pytorch-MSCRED-master")